package org.prem.spring.core.collection;

import java.util.List;

public class Triangle {
	
	private String type;
	
	private List<Point> pointList;
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<Point> getPointList() {
		return pointList;
	}


	public void setPointList(List<Point> pointList) {
		this.pointList = pointList;
	}


	public void draw(){
		System.out.println(getType()+" Triangle draw");
		for(Point point:pointList){
			System.out.println("Point--->"+point.getX()+" ,"+point.getY());
		}
	}
}
